﻿using System.ComponentModel;
using T4UtilityBelt.UxDesigns.Bindings;
using T4UtilityBelt.UxDesigns.Controls;
using T4UtilityBelt.UxDesigns.Screens2.Renders;
using T4UtilityBelt.UxDesigns.Specialized;

namespace T4UtilityBelt.UxDesigns.Screens2
{
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1501:AvoidExcessiveInheritance")]
    public class EntityCreateScreen : ContentEntityScreen<EntityCreateScreen, IEntityCreateScreenRenderer>
    {
        public EntityCreateScreen()
        {
            StandardConstructor();
        }

        public EntityCreateScreen(string entityName)
            : base(entityName)
        {
            StandardConstructor();
        }

        public EntityCreateScreen(string entityName, string screenName)
            : base(entityName, screenName)
        {
            StandardConstructor();
        }

        private void StandardConstructor()
        {
            ActionBar.Controls.Add(new ActionButton() { Click = new Binding("SaveCommand"), Text = "Save", IconUri = "Save", ShouldSerialize = false });
        }
    }
}